package com.xqboss.apps.enums.synthesis;

import com.xqboss.common.enums.BaseEnum;

/**
 * 用户合成状态
 * @author Trent
 * @date 2023/8/17
 */
public enum SynthesisStatusEnum implements BaseEnum<Integer> {
    PENDING(0, "进行中"),
    SUCCESS(1, "合成成功"),
    ERROR(-1, "合成失败"),
    ;

    private final String msg;
    private final Integer value;

    SynthesisStatusEnum(Integer value, String desc) {
        this.value = value;
        this.msg = desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
